//
// C++ Interface: label
//
// Description: 
//
//
// Author: Os3 s.r.l. <xgui@os3.it>, (C) 2005
//
// Copyright: See COPYING file that comes with this distribution
//
//

namespace xgui
{
    %feature("docstring","derives from :class:`xgui.WidgetClass` ") LabelClass;
	struct LabelClass : public xgui::WidgetClass
	{
		  LabelClass();
		  std::string const &className();
		  bool isInstanceable();
		  xgui::Object * create(xgui::Object * parent, xgui::StringMap &properties);
	};
    %feature("docstring","**DESCRIPTION**\n\nderives from :class:`xgui.Widget`\n\n**PROPERTIES**\n\n* **text** *(RW):* sets or retrieves the text displayed in the label\n\n* **alignment** *(RW):* sets or retrieves the text alignment of the label. It can be one of the following strings: \"left\", \"center\", \"right\". default: \"left\"\n\n**EVENTS**\n\n none.\n\n") Label;
	class Label : public xgui::Widget
	{
		protected:
			Label ( xgui::Container * parent, std::string const &text );
			virtual ~Label();
	};
}

%extend xgui::Label {
	%pythoncode {
		def __del__(self):
			if self.valid: self.delPyOwner(self)
	}
}

